package edu.nf.ch06.easy;

import edu.nf.ch06.product.IPhone;
import edu.nf.ch06.product.Phone;

/**
 * @author CSY
 * @date 2025 - 04 - 15
 * 简单工厂 - 违反开闭原则
 */
public class Main {
    public static void main(String[] args) {
        ObjectFactory factory = new ObjectFactory();
        Phone phone = (Phone)factory.create("apple");

        Phone p = new IPhone();

        phone.call();
    }
}
